﻿@model MyPSDALayer.SiteDB
<link href="~/ueditor1_2_6_0-utf8-net/themes/iframe.css" type="text/css" />
<script type="text/javascript" src="~/UEdit/ueditor.config.js"></script>
<script type="text/javascript" src="~/UEdit/ueditor.all.min.js"></script>   
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SiteDB</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.WorkTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkTime)
            @Html.ValidationMessageFor(model => model.WorkTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.QQ)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.QQ)
            @Html.ValidationMessageFor(model => model.QQ)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IS_Current)
        </div>
        <div class="editor-field">
            @Html.DropdownListYNFor(model => model.IS_Current)
            @Html.ValidationMessageFor(model => model.IS_Current)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.SiteIntro)
        </div>
        <div class="editor-field">
            <script type="text/plain" id="SiteIntro" name="SiteIntro">@(Model != null ? Html.Raw(Model.SiteIntro) : new MvcHtmlString(""))</script>
            <script type="text/javascript">
                var editor = UE.getEditor('SiteIntro', { initialFrameHeight: 280, initialFrameWidth: 800 });
            </script>
            @Html.ValidationMessageFor(model => model.SiteIntro)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_1)
            @Html.ValidationMessageFor(model => model.Field_1)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_2)
            @Html.ValidationMessageFor(model => model.Field_2)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_3)
            @Html.ValidationMessageFor(model => model.Field_3)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_4)
            @Html.ValidationMessageFor(model => model.Field_4)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_5)
            @Html.ValidationMessageFor(model => model.Field_5)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Field_6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Field_6)
            @Html.ValidationMessageFor(model => model.Field_6)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
